﻿<UserControl x:Class="ServiceGUI.AdminControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="418" d:DesignWidth="400">
    
    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="30"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>
            <RowDefinition Height="30"></RowDefinition>
        </Grid.RowDefinitions>
        
        <TextBlock TextAlignment="Center" FontSize="20"> Hello Admin!</TextBlock>
        
        <Grid Grid.Row="2">
            <Grid.ColumnDefinitions>
                <ColumnDefinition></ColumnDefinition>
                <ColumnDefinition Width="100"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            
            <Button Margin="3" Grid.Column="1" Click="Button_Click">Logout</Button>
        </Grid>
        
        <Grid Grid.Row="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"></ColumnDefinition>
                <ColumnDefinition Width="100"></ColumnDefinition>
            </Grid.ColumnDefinitions>

            <Grid Grid.Column="0">
                <Grid.RowDefinitions>
                    <RowDefinition></RowDefinition>
                    <RowDefinition Height="200"></RowDefinition>
                </Grid.RowDefinitions>

                <Border BorderThickness="2" BorderBrush="Black" Grid.Row="0" Margin="3">
                    <StackPanel>
                        <TextBlock FontSize="15" TextAlignment="Center">Add User</TextBlock>
                        
                        <TextBlock>User name:</TextBlock>
                        <TextBox Name="UserName"></TextBox>

                        <TextBlock>User post:</TextBlock>
                        <TextBox Name="UserPost"></TextBox>

                        <TextBlock>User salary:</TextBlock>
                        <TextBox Name="UserSalary"></TextBox>

                        <TextBlock>User password:</TextBlock>
                        <TextBox Name="UserPassword"></TextBox>

                        <StackPanel Orientation="Horizontal" Grid.Column="0" HorizontalAlignment="Right">
                            <Button Margin="3" Click="Button_Click_1">Add User</Button>
                        </StackPanel>
                    </StackPanel>
                </Border>
                
                
                <Border Margin="3" BorderThickness="2" BorderBrush="Black" Grid.Row="1">
                    <StackPanel>
                        <TextBlock>Name:</TextBlock>
                        <TextBox Name="CurrentUserName"></TextBox>
                        
                        <TextBlock>Commnon Box:</TextBlock>
                        <TextBox Name="CommonDataBox"></TextBox>
                        
                        <StackPanel Orientation="Horizontal" Margin="5">
                            <Button Margin="3" Click="Button_Click_2">Delete user</Button>
                            <Button Margin="3" Click="Button_Click_3">Set Post</Button>
                            <Button Margin="3" Click="Button_Click_4">Set Password</Button>
                            <Button Margin="3">Set Salary</Button>
                        </StackPanel>
                    </StackPanel>
                </Border>
            </Grid>

            <ListBox Margin="3" Grid.Column="1" Name="UserList"/>
        </Grid>        
    </Grid>
</UserControl>
